/**
 * http配置
 */
import axios from 'axios'
// http响应拦截器
axios.interceptors.response.use(
  data => {
    if (data.status === 302) {
      window.location.reload()
    }
    return data
  },
  error => {
    return Promise.reject(error)
  }
)

export default axios
